package com.tengju.user.domain.model.protocol;

import com.fasterxml.jackson.annotation.JsonCreator;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum ReqPlatform {

    /**
     * 服务协议
     */
    IOS("ios"),
    /**
     * 隐私政策
     */
    ANDROID("android");

    private String value;

    public String getValue() {
        return value;
    }

    public static ReqPlatform fromValue(String value) {
        for (ReqPlatform platform : values()) {
            if (platform.value.equals(value)) {
                return platform;
            }
        }
        return null;
    }
}
